package com.itao.jdbc.util;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/**
 * @author sjt
 * @Date 2025/1/7 10:23
 */
public class DbUtil {


    public static Connection getConnect() {
        try {
            return DriverManager.getConnection(
                    "jdbc:kingbase8://172.16.4.81:54321/hydo-dalian?currentSchema=hydo-dalian&characterEncoding=UTF-8",
                    "system",
                    "hywy@123.."
            );
        } catch (SQLException e) {
            throw new RuntimeException(e);
        }

    }
}
